<!DOCTYPE html>
<html>

<head>
<title><?php echo read_option('site_name'); ?></title>
<meta charset="utf-8">
<link href="rss.php" rel="alternate" title="RSS" type="application/atom+xml" />
<link href="jquery/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css">
<script src="jquery/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="jquery/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<script src="jwplayer/jwplayer.js" type="text/javascript"></script>
<script src="js/get_subtitles.js" type="text/javascript"></script>
<link href="templates/default/css/style.css" media="all" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(function(){
$('#search').tabs();
$('#quickaccess').tabs();
$('#opensubtitles').tabs();
$('#pagefooter').tabs();
$('#subtitlesgallery').tabs();
$('#welcome').tabs();
$('#manageaccount').tabs();
$('#newsletter').tabs();
$('#videogallery').tabs();
});
</script>
</head>

<body>

<div id="header">
&nbsp;&nbsp;&nbsp; <?php echo read_option('site_name'); ?>

</div>

<div style="clear:both;"></div>
<div style="clear:both;"></div>
<div style="clear:both;"></div>
<div style="clear:both;"></div>

    <center>
    	<br><br>

        <div id="navigationmenu">
	<ul>
            <li><a href="index.php">Home</a></li>
            <li><a href="<?php echo read_option('community_url'); ?>">Community</a></li>
            <li><a href="<?php echo read_option('forum_url'); ?>">Forum</a></li>
            <li><a href="index.php?page=videos">Videos</a></li>
            <li><a href="index.php?page=finished_subtitles">Subtitles</a></li>
            <li><a href="index.php?page=requests">Requests</a></li>
            <li><a href="index.php?page=search">search</a></li>
            <li><a href="downloads/Kerensky_Automatic_Subtitle_Synchronizer.rar">Automatic Subtitle Synchronizer</a></li>
                    <?php
                    if(is_user_loggedin()=="true") {
                    echo "
                    <li><a class='nolink' href='index.php?page=ucp'>My Account</a></li>
                    <li><a class='nolink' href='index.php?action=signout'>sign out</a></li>
                    ";
                    }
                    else
                    {
                    echo "
                    <li><a class='nolink' href='index.php?page=register'>register</a></li>
                    <li><a class='nolink' href='index.php?page=signin'>sign in</a></li>
                    ";
                    }
                    ?>
	</ul>
	</div>

        <br><br>



<div id="wrapper">
        
	<div id="left-col">
	
		<div id="search">
			<ul>
				<li><a href="#tabs-1">Search</a></li>
			</ul>
			<div id="tabs-1">
				<form method='post' action='index.php'>
				<input type="text" name='search_text' style="width: 100%;">
				<input type='hidden' name='type' value='1' />
				<input type='hidden' name='page' value='search' />
				<input type="submit" value="Search" style=" margin-left: 0px;">					
				</form>
			</div>
		</div>
	


<?php
if(is_user_loggedin()=='true')
{
echo "
<br>
		<div id='quickaccess'>
			<ul>
				<li><a href='#tabs-1'>Quick Access</a></li>
			</ul>
			<div id='tabs-1'>
			
			  My Videos
";			  
			  include "modules/myvideos.php";
echo "		  My Favourite videos";
			  include "modules/my_favourite_videos.php";
echo "		  My Subtitles";
			  include "modules/mysubtitles.php";
echo "		  Team Subtitles";
			  include "modules/teamsubtitles.php";
echo "		  
			</div>
		</div>
            
            ";						
}			
?>	


		
		<br>
		
		<div id="opensubtitles">
			<ul>
				<li><a href="#tabs-1">Open Subtitles</a></li>
			</ul>
			<div id="tabs-1">
				<?php include "modules/open_subtitles.php"; ?>
			</div>
		</div>
				
		<br>
		
		<div id="subtitlesgallery">
			<ul>
				<li><a href="#tabs-1">Subtitles Gallery</a></li>
			</ul>
			<div id="tabs-1">
				<?php include "modules/scrolling_subtitles.php"; ?>
			</div>
		</div>




	</div>
	<div id="middle-col">
		<?php echo $web_page_content; ?>
        </div>
		
		
		
	<div id="right-col">
		
				

<?php
if(is_user_loggedin()=='true')
{
echo 	    "
		<div id='welcome'>
			<ul>
				<li><a href='#tabs-1'>Welcome</a></li>
			</ul>
			<div id='tabs-1'>

";
                include "modules/user_info.php";
echo        " </div>
            </div>";
}
?>

		
		
		
		
		<?php
if(is_user_loggedin()=='true')
{
echo "
		<br>
		
		<div id='manageaccount'>
			<ul>
				<li><a href='#tabs-1'>Manage Account</a></li>
			</ul>
			<div id='tabs-1'>
                	<ul>
					<li><a href='index.php?page=ucp'>User CP</a><span class='sep'>&nbsp;</span></li>
					<li><a href='index.php?page=my_subtitles'>My Subtitles</a><span class='sep'>&nbsp;</span></li> 
					<li><a href='index.php?page=my_videos'>My Videos</a><span class='sep'>&nbsp;</span></li>
					<li><a href='index.php?page=my_requests'>My Requests</a><span class='sep'>&nbsp;</span></li>					
					<li><a href='index.php?page=upload_subtitle'>Upload Subtitle</a><span class='sep'>&nbsp;</span></li>
					<li><a href='index.php?page=upload_video'>Upload Video</a><span class='sep'>&nbsp;</span></li>
					<li><a href='index.php?page=favourites'>Favourites</a><span class='sep'>&nbsp;</span></li>
					";
					if(is_user_loggedin()=='true' and get_user_group()=="1") 
					{
					echo "<li><a href='admin'>Admin</a><span class='sep'>&nbsp;</span></li>";
					}
echo "				</ul>
              </div>
            </div>
            <br>

";			
}
?>

		
		
	
		
		<div id="newsletter">
			<ul>
				<li><a href="#tabs-1">Newsletter</a></li>
			</ul>
			<div id="tabs-1">
<form>
Sign up for our newsletter:<br>
<input type="text" style="width: 100%">
<input type="submit" value="submit">
</form>
			</div>
		</div>

		<br>
		
		<div id="videogallery">
			<ul>
				<li><a href="#tabs-1">Video Gallery</a></li>
			</ul>
			<div id="tabs-1">
				<?php include "modules/scrolling_videos.php"; ?>
			</div>
		</div>

		
	</div>
	
</div>


<div style="clear:both;"></div>
<div style="clear:both;"></div>
</center>


<br>
<div id="footer">
		<div id="pagefooter">
			<ul>
				<li><a href="#pagefooter-1">info</a></li>
			</ul>
			<div id="pagefooter-1">
			
<!-- footer -->

<div style="float:left ; padding: 5px;">
								    <a href="<?php echo read_option('community_url'); ?>">community</a> &nbsp;|&nbsp;
								    <a href="<?php echo read_option('forum_url'); ?>">forum</a> &nbsp;|&nbsp;
								    <a href="index.php?page=videos">videos</a> &nbsp;|&nbsp;
								    <a href="index.php?page=finished_subtitles">subtitles</a> &nbsp;|&nbsp;
								    <a href="index.php?page=requests">requests</a> &nbsp;|&nbsp;
								    <a href="rss.php">rss</a> &nbsp;|&nbsp;
									<a href="sitemap.php">sitemap</a>
</div>
          
          <div class="copy fright" style="float:right; margin: 5px;">
   
          						<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1758498" target="_blank">Open Discussion</a> &nbsp;|&nbsp;
								<a href="http://sourceforge.net/tracker/?group_id=534975&atid=2172715" target="_blank">Bugs</a> &nbsp;|&nbsp;
								<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1758499" target="_blank">Help Forum</a> &nbsp;|&nbsp;
								<a href="http://sourceforge.net/tracker/?group_id=534975&atid=2172718" target="_blank">Feature Requests</a> &nbsp;|&nbsp;
								<a href="http://sourceforge.net/projects/onlinesubtitles/forums/forum/1761558" target="_blank">Security Forum</a>

          </div>
        </div>
        
		<br>
		<center>
		Powered by <a href="http://onlinesubtitles.sourceforge.net/" target="_blank">Online Subtitles Workshop</a>
		</center>
		<br>
<!-- end footer -->

				</div>
		</div>


</body>

</html>
